package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * @author ：lintao
 * @date ：Created in 2020/12/7
 * @description ：
 * @version: 1.0
 */
public interface RoleService {
    public PageResult findPage(QueryPageBean queryPageBean);
    public void add(Role role, Integer[] menuIds, Integer[] permissionIds);
    public Role findById(Integer id);
    public List<Integer> findRoleAndMenu(Integer roleId);
    public List<Integer> findRoleAndPermission(Integer roleId);
    public void edit(Role role, Integer[] menuIds, Integer[] permissionIds);
    public void deleteById(Integer id);
    public List<Role> findAll();
}
